USE [BMIG_MENSUAL_POST_CADENA]

 -- creating the store procedure
IF EXISTS (SELECT name 
	   FROM   sysobjects 
	   WHERE  name = 'WASP_M0009_CANTIDAD'
	   AND 	  type = 'P') 
	DROP PROCEDURE [dbo].[WASP_M0009_CANTIDAD]
GO

CREATE PROCEDURE [dbo].[WASP_M0009_CANTIDAD] AS
begin
  SELECT COUNT(*)  AS CANTIDAD
  FROM dbo.ingreso_produccion_UF_ant
END  